003 how i do it (part 2)

好的,我们回来了,让我们看看是否能把这个安全项目全部完成,这次演讲将是我的目标。
OK we're back and let's see if we can't get this security project all wrapped up and this lecture that would be my goal.

所以我们已经登录了,我们已经得到了密码,甚至密码显示不正确。
So we've already got our log in we've got our password and we've even got an incorrect password display.

有些事我认为我没有做到。
Something I don't think I did.

我实际上并没有将错误的密码显示链接到内存中的相应密码,我现在就继续这样做,所以让我们调出帮助,它说如果密码不正确,那么 HDMI 将设置本地位 1960。
I didn't actually link that incorrect password display to the appropriate in memory and I'm going to go ahead and do that now so let's pull up the help and it says if the password is incorrect then the HDMI sets a local bit 1960.

好的。
All right.

因此,让我们继续将这个东西与本地位联系起来。
So let's go ahead and tie this thing to local bit.

1960年。
1960.

因此,我的本地投注将设置为 H。
So that's going to be set to the H in my local bet.

9 0 6 0。

9 0 6 0.

好的,现在我想我已经完全设置好了,然后让我回到这里。
OK so now I think I've got that fully set up and then let me jump back in here.

我还需要注销。
And I also need a log off.

所以我需要设置位 90 50 来注销。
So I need to set bit 90 50 to log off.

为什么我不去这里的对象获取按钮设置位并创建一个新按钮。
Why don't I go up here to objects take button set bit and just create a new button.

所以提醒我那是什么。
So remind me what was that bit.

这是 90 50 就是我需要的。
It was 90 50 is what I need.

因此,让我们将其与本地 Chimay 9 0 5 0 联系起来,然后给它一个标有“注销”的标签。
So let's tie this into a local a Chimay 9 0 5 0 and we'll give this a label that says log out.

我只是想尝试一下。
I'm just going to try that.

我们试试不。
Let's try no.

这次画下我的颜色。
Underline this time my color.

我想我会把我的颜色变成蓝色,以匹配其他一切,所以我的尺寸。
I think I'm going to make my color blue just to match everything else so my size.

我想我想把这个数字减少到 14。
I think I want to drop that down to 14.

让我们点击“确定”。
Let's hit OK.

放置这个,看看我们在看什么。
Place this and see what we're looking at.

现在您会看到我们的数字条目具有蓝色边框和内部白色填充。
So right now you see our numeric entries have that blue border and that white fill inside.

我真的想我想让它看起来像那样。
I really think I'd like to make this look something like that.

那么让我们进入形状库,看看是否可以看到一个实际上看起来像这样的按钮。
So let's go into the shape library and let's see if I can see a button that actually kind of looks like that.

好吧,这个是灰色的灰色,向下看列表。
Well this one's kind of gray on gray and looking down the list.

不,我没有在按钮上看到任何东西。
Nope I'm not seeing anything on buttons.

系统框架呢?
What about system frame.

有一些漂亮的框架,但我并没有真正看到颜色系统按钮发生了很多变化。
Got some nice frames but I don't really see a whole lot going on with color system button.

这算是一种洗吧。
That's kind of a wash.

所以我真的没有看到任何正是我想要的东西。
So I'm really not seeing anything that's just exactly what I want.

我将继续执行此操作,然后单击“确定”,然后再次单击“确定”。
I'm just going to go ahead and take this one and hit OK and hit ok again.

这看起来并不完全一样,但我认为这对于我想做的事情来说可能已经足够好了。
And that doesn't really look the same but I think it's probably good enough for what I wanted to do.

所以无论如何,它看起来有点不同也许是一件好事。
So it's maybe a good thing anyway that it looks a little bit different.

我知道我可以去实际创建形状,但这似乎只是安全面板内一个简单的注销按钮的大量工作。
I know I could go and actually create the shape but that seems like a whole lot of work for just a simple log off button inside of a security panel.

因此,也许它看起来有点不同这一事实告诉操作员这是一个不同的控件。
So maybe the fact that it looks a little bit different tells the operator that it's a different control.

或者也许我只是想看到好的和坏的。
Or maybe I'm just trying to see good and the bad.

不管怎样。
Whatever the case.

好的。
OK.

我必须注销按钮,现在我将其放在这里。
I've got to log out button and I'll put that here for now.

尽管我确信稍后我可能会在其他地方想要它。
Even though I'm sure I'm probably going to want that somewhere else a little bit later.

让我们回到我们的文档,看看我们还可以在这里展示什么。
Let's go back into our documentation and see what else we can show on here.

这是我想展示的一些东西。
Here's something that I would like to show this.

LW 92 22 指示当前允许哪些访问类别。
LW 92 22 indicates what Access classes are currently allowed.

因此,如果我们能够向用户展示他们拥有和不拥有哪些权限,那就太好了。
So it would be really nice for us to be able to show the user what permissions they have and don't have.

所以我要暂时关闭它,所以我要复制我们的小显示,以获取不正确的密码,然后我将其粘贴到这里。
So I'm going to close that for a second so I'm going to copy our little display here for our incorrect password and I'm going to paste that and right over here.

我要双击它。
I'm going to double click on that.

让我们稍微改变一下这个标签。
And let's just change this label a little bit.

所以目前我在状态 0 上没有显示任何内容。
So for right now I don't have anything showing up on state 0.

然后对于状态 1,我想我会将其设置为绿色,而不是说错误的密码,我认为它会说 config,因为这将告诉用户该用户具有配置访问权限,并且可能输出配置访问 CCS。
And then for state 1 I think I'm going to make this green and instead of saying incorrect password I think it's going to say config because that's going to tell the user that the user has configuration access and maybe output configuration access a CCS.

那么我们还需要链接这个东西,我们想要链接到哪个位,肯定不是密码位。
So then we also need to link this thing and what bit do we want to link this to will certainly not the password bit.

那么让我们看看我实际上可以将其寻址到本地字位。
So let's see I can actually address this to a local word bit.

所以我将采用我当地的说法。
So I'm going to take that and what is my local word.

好吧,让我们回到这里查看我们的帮助,我们的访问类是本地单词 90 到 22。
Well let's pop back over here into our help and our Access classes are local word 90 to 22.

然后我们有一个位级别 0 到 5,表示 A 类到 F 类,我们实际上并没有使用 A 类,我们将使用 B 类和 C 类,所以我将使用二分之一的位。
And then we have a bit level 0 through 5 indicating classes A through F where we're not really working with Class A We are going to be working with B and C so I'm going to be working with bits one in two.

所以我相信 92 22 0 2 。
So 92 22 0 2 I believe.

所以这些类型 9 2 2 2 0 2 我认为这会起作用,这将告诉我们是否获得了许可 B 或启用了安全性。
So those type 9 2 2 2 0 2 and I think that's going to work and that's going to tell us if we've got permission B or security quaffs be enabled.

所以我会继续并点击“确定”。
So I'll go ahead and hit OK on that.

让我们继续复制此内容并再粘贴一个,我会将其放在这里。
And let's go ahead and copy this and paste one more and I'll put that right here.

让我们双击这个,在标签中,这个将成为我的记录访问权限。
Let's double click this one and in the label this one is going to be my record access.

所以我们希望 0 保持相同的状态。
So we want 0 to stay the same state.

其中一个是绿色的,我将更改它以记录访问,而不是配置访问,然后在一般情况下,我们将在此处使用 0 3 位,而不是 0 2 位。
One will be green and instead of config access I am going to change that to record access and then under general instead of the 0 2 bit we're going to use the 0 3 bit here.

好的。
Okay.

现在我们有两个不同的指标,它们将显示并告诉我们在任何帐户上启用了哪些证券。
And now we've got two different indicators which will show up and tell us what securities we have enabled on any account.

让我们回到 H.R.
Let's go back into H.R.

方法。
ways.

我想要这个矩形和这个标签就在这里。
And I want this rectangle and this label right here.

因此,我将把它们复制回安全区域并将其粘贴到此处。
So I'm going to copy those come back into security and paste them here.

让我们继续,让这个盒子变得更小、更完美,然后我将把这个标签移到这里,让我们继续改变上面的内容,我们将称这个权限为“非常好”,然后点击“确定”。
And let's go ahead and make this box a lot smaller perfect and then I'm going to move this label over here and let's go ahead and change what that says we'll just call this permissions very good and hit OK.

所以现在这将是我们的权限指示,它将显示并告诉我们我们有权访问和无权访问的内容,然后我们可以输入登录信息,注销输入密码,甚至向我们显示如果我们输入了错误的密码,则会收到通知。
So now this is going to be our permissions indication which will show up and tell us what we have access to and don't have access to then we have the ability to put in a log in log out put in a password and even show us notification if we've entered a bad password.

那么让我们回到我们的文档。
So let's go back to our documentation.

我们还想在这里展示什么。
What else do we want to show in here.

好吧,你看,我已经得到了这些新密码,我认为这会非常有用。
Well you see I've got these new passwords and I think that would be pretty useful.

我们实际上可以允许人们更改密码。
We can actually allow people to change their passwords.

所以我们正在与用户一、二、三合作。
So we're working with users one two and three.

我将继续进行设置,并对其进行安全保护,以便只有登录的人才能更改自己的密码。
I'm going to go ahead and set that up and I'm going to put security on these so that only the person who's logged in can change their own password.

那么让我们看看我们将如何做到这一点。
So let's see how we're going to do that.

我们知道我们需要输入数字作为密码。
We know we're going to need a numeric entry for the password.

我已经有了其中之一。
I've already got one of those.

所以我要把它带到这里。
So I'm just going to bring that right down here.

我已经有了一个密码标签,所以我要把它带到这里,我只是要修改它以表示新密码,因为我们不希望对这个人的身份产生任何混淆放在这里。
And I've already got a label for a password so I'm going to bring that right here and I'm just going to modify that to say new password because we don't want there to be any confusion about what this person is putting in here.

然后我也会复制我的框架和这个标签,然后把它带到这里。
Then I'll also copy my frame and this label and I'll bring that down here.

而不是说密码,而是说更改密码好吧,看起来不错。
And instead of saying passwords this one will say change password All right that looks good.

我可以把它放在这里,但现在看看我要做什么。
And inside of here I can put this but for right now watch what I'm going to do.

我将复制这个 Gnumeric 条目,然后再创建两个这样的东西。
I'm going to copy this entry this Gnumeric and I'm going to create two more of these things.

这些将来自我的用户一、二和三,我真的只希望其中一个在任何给定时间出现。
And these are going to be from my users one two and three and I really only want one of those to be showing up at any given time.

那我该怎么办呢。
So how can I do that.

好吧,首先让我们打开它,我们知道我们需要将这个临时新密码存储在某个地方。
Well first of all let's open this up and we know we needed to store this temporary new password somewhere.

因此,对于用户 1 来说,我有两个不同的单词作为新密码,我猜测这可能是因为必须输入密码两次以确保它匹配。
So for user 1 what it looks like is I've got two different words for a new password and I'm guessing at this point that that's probably for having to enter your password two times to make sure it matches.

所以我想我需要将相同的密码输入九千五百九十五。
So I think I need to put the same password into ninety five hundred and ninety five.

0 1。

0 1.

让我们回到这里,这将是 95 百,所以 5 0 0。
So let's come back into here and this is going to be 95 hundreds so 5 0 0.

让我们点击“确定”,我将暂时删除底部的这个。
Let's hit OK on that and I'm going to delete this bottom one for the time being.

这个将被设置为 95 0 1。
And this one's going to be set to 95 0 1.

除此之外,我想在这两个中设置的唯一一件事是我希望能够控制可见性。
And other than that the only other thing that I want to set in both of these is I would like to be able to control visibility.

那么让我们进入这里吧。
So let's go into here.

在安全性下,我在这里找到了这个东西,上面写着“使用 Interlok 功能并在禁用时隐藏”。
And under security I've got this thing right here that says Use Interlok function and hide when disabled.

所以我想在禁用它时隐藏它,然后我将对此设置用户限制,并且当某个位打开时它将被启用。
So I want to hide this when it's disabled and then I'm going to put a user restriction on this and it's going to be enabled when a certain bit is on.

好吧,让我们看看当用户 1 登录时是否启用了某个位。
Well let's see if there is a bit that gets enabled when user 1 is logged in.

因此,让我们回去提供帮助,我为不同的用户提供了所有这些不同的东西。
So let's go back to help and I've got all these different things for different users.

好吧,我没有看到我有一个实际的位来告诉我们每个登录的不同操作员。
Well I don't see that I have an actual bit that tells us for each of the different operators that's logged in.

这就是我能做的。
So here's what I can do.

我将回到我的安全设置,并使用更多的类。
I'm going to go back into my security set up and I'm going to use a little bit more class.

因此,对于这些用户中的每一个,一二三我还将给他们上一堂课。
So for each one of these users one two and three I'm going to also give them another class.

所以我们现在使用 B 和 C。
So we're using right now B and C.

好吧,我将使用 D E 和 F,并且我将给出其中的每一个。
Well I'm going to use D E and F and I'm going to give each one of those.

其中一门课。
One of these classes.

所以现在当我回到这里查看安全性时,我可以使用该类来实际控制我的新密码。
So now I can use that class to actually control my new password when I come back into here and look at security.

现在,我可以使用此互锁功能,在禁用时隐藏,在位打开时启用,并且我要使用的位将是本地字位,并且我将寻找实际的访问级别。
Now I can use this interlock function hide when disabled and enable when the bit is on and the bit that I'm going to use is going to be a local word bit and I'm going to be looking for that actual access level.

所以这里是本地字 92 22 上的访问类,我现在正在寻找的位是 D E 和 F..
So here are Access classes on local word 92 22 and the bits that I'm looking for now are D E and F..

因此,如果 A 为零,则第 5 位为 F,所以我将查看第 3、4 和 5 位。
So if A is zero bit 5 is F so I'm going to be looking at bits 3 4 and 5.

所以 92 22 0 3。
So 92 22 0 3.

就在这儿。
Right here.

这将告诉我们是否真的能够访问此控件,因为这意味着用户或某人已登录。
And that will tell us if we're actually able to access this control because that's going to mean that user or one is logged in.

因此,在我们的安全性上,使用 Interlok 禁用时会隐藏。
So on our security use Interlok hide when disabled.

这对于本地字位 90 到 22 03 来说是完美的。
And that's going to be for local word bit 90 to 22 03 perfect.

点击“确定”,如果我没记错的话,我现在已经保护了这两个并且为它们创建了可见性。
Hit OK and if I'm not mistaken I've now both protected both of these and I've created visibility for them.

所以我也有这些。
So I've got those too.

让我们继续复制另外两套。
Let's go ahead and copy two more sets of these.

非常好。
Very good.

然后我需要这些来对应其他两个用户。
And then I need these to correspond to the other two users.

因此,对于这个,让我们继续设置安全性。
So for this one let's go ahead and set the security.

这将是 0 4。
This is going to be 0 4.

好的。
OK.

这一安全性也将是 0 4。
This one security is also going to be 0 4.

下面我们需要 F 类,这是用户 3 的标志,也是同一个单词的第 5 位。
And down here we need Class F and that's a sign to user 3 and that's bit 5 of the same word.

因此,让我们继续对其中的每一个进行设置。
So let's go ahead and set that on each of these as well.

非常好。
Very good.

然后我们需要在每一个上设置实际正确的地址。
And then we need to set the actual right addresses on each of these.

因此,对于用户 1,我们有 9595 0 1,然后是 2 和 3,然后是 4 和 5。
So for user 1 we had ninety five hundred ninety five 0 1 and then it goes two and 3 and then four and five.

因此,这将是 95 0 到,然后是 95 0 3,然后我们得到 95 0,最后我们得到 95 0 5。
So this one is going to be 95 0 to and then 95 0 3 then we've got 95 0 for and last We've got 95 0 5.

输入密码后,我们还需要设置位 1961 来启动更改。
And once we put that password in we also need to set bit 1961 to initiate the change.

所以我们需要一个 1961 年的按钮。
So we're going to need a push button on 1961.

因此,让我们继续并按下此处的按钮。
So let's go ahead and take this push button right here.

复制和粘贴。
Copy and paste.

在我忘记暂时地址是 1961 之前,我会继续在上面贴上标签。
Before I forget that momentary address is 1961 and I will go ahead and make the label on this say.

改变。
Change.

完美的。
Perfect.

至于安全性。
And as for security.

这将一直出现。
This is going to show up all the time.

我宁愿没有。
I'd rather it didn't.

因此,如果我进入安全领域,我实际上可以设置它。
So if I go into security I could actually set this up.

但我必须创建其中三个按钮。
But I would have to create three of these buttons.

但你知道吗,我想我会的。
But you know what and I think I will.

那么让我们继续前进吧。
So let's go ahead and come in here.

92 2 0 3 9 22 2 或 3。
92 2 0 3 9 22 2 or 3.

我要复制那个。
I'm going to copy that.

将其带到我的更改按钮处。
Bring that over here to my change button.

安全联锁本地 h 我的本地字位,我只是将该地址粘贴到那里。
Security interlock local h my local word bit and I'm just going to paste that address in there.

我想我需要一个更小的按钮。
And I think I'm going to want a smaller button here.

然后让我创建几个副本,我将把它们暂时移到正在更改的用户旁边,并且安全级别为 4 级,而这个副本的安全级别为 5 级。
Then let me just create a couple of copies of those and I'm going to move those just kind of temporarily next to the users that are being changed and under security that's going to be level four and this one is going to have class 5.

这样我们就为每个人提供了一个更改按钮,这有点烦人,但它允许我们做我们想做的事情。
So that way we've got one change button for each person which is kind of annoying but it's going to allow us to do what we want to do.

现在我要将这些按钮移到彼此的顶部,并将其放在此处的某个位置。
And now I'm going to move these buttons on top of each other and I'm going to put that somewhere over here.

然后我将对这些做同样的事情。
Then I'm going to do the same thing with these.

我要把它们移到彼此之上,我以后可能会后悔,尤其是如果我必须改变一些东西的话。
I'm going to move them on top of each other and I might regret this later especially if I have to change something.

但当我到达那座桥时,我会跨过那座桥。
But I'll cross that bridge when I get to it.

让我们继续把它们写在这里。
And let's go ahead and put those down right here.

然后我就有了我的小框架。
Then I've got my little frame.

因此,让我们稍微扩展一下这个框架,因为我确实希望能够在其中放置一些标签。
So let's expand this frame out a little bit because I do want to be able to put some labels in there.

我得到了新密码。
I've got my new password.

然后我还将在此处创建一个标签,显示确认密码。
And then I'm going to also create a label here that says confirm password.

这样用户就知道盒子里装的是什么。
That way the user knows what goes in that box.

所以我们在这里得到了新密码,在这里确认密码。
So we've got new password here confirm passwords here.

让我把我的框架缩小一点,这样它就合适了,我会把它拉到这里。
Let me just shrink my frame down a little bit so that it's a fit and I will pull this over here.

我们开始吧。
There we go.

我会把这整件事都放在那里。
And I will put this whole thing right down there.

那是不错的。
That's decent.

我想在结束本次讲座之前我将再创建一个框架,并将其移至此处。
And I think I'm going to create one more frame before I wrap this lecture up and I'm going to move that right up to here.

因此,让我们继续扩展它,然后我想要我的标签,我将把它拉到这里的顶部,这将是登录斜杠注销。
So let's go ahead and stretch this up and then I want my label and I'm going to pull that up on top here and that's just going to be log in slash log out.

好的。
All right.

现在我的屏幕上出现了三个小表格。
So now I've got three little forms on my screen here.

我想我需要把它向右一点点来装扮所有东西,实际上让我们继续把那个向后拉,然后把整个东西向前拉。
And I think I need to just bump this to the right a little bit to dress everything up and actually let's go ahead and pull that back one and then pull the whole thing forward.

只是把所有东西都清理干净,这样看起来就不错了。
Just cleaning everything up so that it all looks halfway nice.

我将扩大这种控制范围。
I'm going to stretch that control out.

好的。
All right.

我不知道是否一切正常,但我确实设置了安全性,至少是我计划推出的。
I don't know if everything works but I do have my security set up at least what I'm planning on rolling out.

每当我们进行下一堂课时,我都会对此进行测试,希望不会修复太多,但我怀疑我可能会修复。
And whenever we get to the next lecture I'll be testing this and hopefully not fixing too much but I have a suspicion that I just might be.

所以我们会看到。
So we will see.

好的。
All right.

这就是本次讲座的内容,我们下期再见。
So that's it for this lecture and I'll see you in the next.